<template>
  <div>
    <table style="width: 100%;">
      <tr style="height: 100%;border: black 1px solid" v-for="i in data" :key='i.id'>
        <td style="width: 100%">
            <p>状态： {{ i.start }}</p>
            <p v-show="i.refuse!=null">拒绝原因： {{i.refuse}}</p>
            <p v-for='(j,k,index) in i.info' :key="index">{{k}}： {{j}}</p>
            <a-steps v-if="i.start!=2&&i.start!=1" :current="i.f_index">
              <a-step v-for="(s,index) in i.Approved_list" :key="index">
                <template slot="title">
                  <span v-if="typeof s=='string'">{{ s }}</span>
                  <span v-else v-for="(k,index) in s" :key="index">{{ k }}<br></span>
                </template>
              </a-step>
          </a-steps>
        </td>
      </tr>
    </table>

  </div>
</template>

<script>
import moment from 'moment';
import 'moment/locale/zh-cn';
import mycate from "./Reply";
export default {
  
  data () {
    return {
          data:[],
          list:[]
    };
  },
  components:{
    mycate
  },
  methods: {
      getqingjia(){
          this.$axios.get('qingjiainfo/?uid='+sessionStorage.getItem('uid')).then(res=>{
              this.data = res.data
              this.list = res.data.info
              console.log(res.data);
              
          })
      }
  },
  mounted(){
      this.getqingjia()
  },
}

</script>
<style>
     
</style>